package com.example.demo.pojo.vo;

import com.example.demo.pojo.entity.QuestionLabel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 知识点的相关信息
 * @author fjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LabelShowVO {
    private int id;
    private int labelId;
    private String labelName;
    List<LabelShowVO>questionLabels=new ArrayList<LabelShowVO>();
    private int level;
    public void initLabel(QuestionLabel questionLabel){
        this.id=questionLabel.getId();
        this.labelId = questionLabel.getId();
        this.labelName=questionLabel.getName();
        this.level = questionLabel.getLevel();
    }
}
